package com.scpii.universal.service;

import com.google.protobuf.InvalidProtocolBufferException;
import com.scpii.universal.pb.UniversalProtocol.QryFinishComplieTaskSC;

public interface PbInterfaceService {
	/**
	 * 获取打包配置信息
	 * 
	 * @param appUpdateId
	 * @return
	 */
	public byte[] getPackInfoService(Integer appUpdateId);

	/**
	 * 创建编译任务
	 * 
	 * @param appUpdateId
	 * @param osType
	 * @param appSign
	 * @param appName
	 * @param styleId TODO
	 * @return 0成功 1失败
	 */
	public int creatComplieTask(Integer appUpdateId, Integer osType,
			String appSign, String appName,double appVersion, Integer styleId)
			throws InvalidProtocolBufferException;

	/**
	 * 查询编译任务
	 * 
	 * @param appUpdateId
	 * @return
	 */
	public QryFinishComplieTaskSC qryComplieTask(Integer appUpdateId)
			throws InvalidProtocolBufferException;
}
